<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/12/15
  Time: 23:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>header</title>
    <style>
        a {
            text-decoration-line: none;
        }
    </style>
</head>
<body>
<div style="margin: 0 auto;width: 80%;">
    <a href="home">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
    <c:if test="${sessionScope.isLogin}">
        欢迎您，${sessionScope.user.nickname}&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=request.getContextPath() %>/user">个人中心</a>
        &nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=request.getContextPath() %>/user?a=updatePassword">修改密码</a>
        &nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=request.getContextPath() %>/logout">注销</a>
    </c:if>
    <c:if test="${!sessionScope.isLogin}">
        您好，请<a href="login" style="color: red">登录</a>
    </c:if>
</div>
</body>
</html>
